package com.zmn.oms.services.interfaces.shop;


import com.zmn.oms.model.entity.shop.OrderExternalShop;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wangyanci
 * @since 2022-08-30
 */
public interface OrderExternalShopService {

    /**
     * 插入数据
     *
     * @param orderExternalShop 插入数据
     * @return 插入数据是否成功
     */
    int insert(OrderExternalShop orderExternalShop);

    /**
     * 修改数据
     *
     * @param orderExternalShop
     * @return 修改是否成功
     */
    int updateById(OrderExternalShop orderExternalShop);

    /**
     * 查询订单外部店铺
     * @param orderId
     * @param workId
     * @return
     */
    OrderExternalShop findByOrderIdAndWorkId(Long orderId, Long workId);

    /**
     * 先删除后新增
     *
     * @param orderExternalShop
     */
    void mergeByOrderIdAndWorkId(Long orderId, Long workId, OrderExternalShop orderExternalShop);
}
